<template>
	<view class="cliniclist">
		<view class="doctors" v-for="(item,index) in doctors" :key="item.id">
			<view class="image">
				<image :src="item.user_url" mode="scaleToFill" style="width: 110rpx; height: 110rpx;"></image>
			</view>
			<view class="contents">
				<view class="topxinxi">
					<view class="name">
						<text>{{item.user_name}}</text>
					</view>
					<view class="sex">
						<text v-if="item.user_sex == 1">男</text>
						<text v-else>女</text>
					</view>
					<view class="holder">
						<text>{{item.holder}}</text>
					</view>
					<view class="likeyuyue">
						<text>立刻问诊</text>
					</view>
				</view>
				<view class="txt">
					<text>{{item.referral}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		onLoad(options) {
			this.doctors = JSON.parse(decodeURIComponent(options.cliniclist));
			console.log(this.doctors);
		},
		data() {
			return {
				doctors: null
			};
		}
	}
</script>

<style lang="scss">
	page {
		width: 100%;
		height: 100%;
	}

	.cliniclist {
		border-top: 2rpx solid #DBDBDB;
		padding: 0 40rpx;
	}

	.doctors {
		margin-top: 40rpx;
		padding-bottom: 30rpx;
		border-bottom: 2rpx solid #DBDBDB;
		display: flex;

		.image {
			width: 110rpx;
			height: 110rpx;
			border-radius: 50%;
			margin-right: 30rpx;

			image {
				border-radius: 50%;
			}
		}
	}

	.contents {
		display: flex;
		flex-wrap: wrap;

		.topxinxi {
			display: flex;
			align-items: center;
			height: 70rpx;
		}
	}

	.name {
		width: 100rpx;

		text {
			font-size: 30rpx;
			color: rgba(0, 0, 0, 1);
		}
	}

	.sex {
		width: 80rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: rgba(102, 102, 102, 1);
	}

	.holder {
		text {
			display: inline-block;
			padding: 2rpx 8rpx;
			border: 2rpx solid rgba(58, 206, 176, 1);
			border-radius: 50rpx;
			font-size: 18rpx;
			font-weight: 400;
			color: rgba(58, 206, 176, 1);
		}

		width: 170rpx;
	}

	.likeyuyue {
		width: 150rpx;

		text {
			display: inline-block;
			width: 126rpx;
			height: 46rpx;
			border-radius: 50rpx;
			background-color: #2DD1BC;
			line-height: 46rpx;
			text-align: center;
			color: #FFFFFF;
			transform: translateY(8rpx);
			font-size: 22rpx;
		}
	}

	.txt {
		width: 100%;
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: rgba(166, 163, 166, 1);
	}
</style>
